package com.david.system.pojo.VO;

import com.david.system.pojo.Entity.JobEntity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class DeptVO implements Serializable {
    private Integer id;
    private String value; //DeptEntity中的name
    private String name; //DeptEntity中的name
    private Integer parentId;
    private List<JobEntity> joblist; //当前部门下的岗位列表
    private List<DeptVO> children = new ArrayList<>(); // 子部门列表
}
